package com.example.ibsp_demo.pojo.entity.user;

import java.time.LocalDateTime;

public class FollowRelation {

    private Integer followerId;   // 关注者ID
    private Integer followedId;   // 被关注者ID
    private LocalDateTime followTime; // 关注时间

    // 无参构造
    public FollowRelation() {
    }

    // 有参构造
    public FollowRelation(Integer followerId, Integer followedId, LocalDateTime followTime) {
        this.followerId = followerId;
        this.followedId = followedId;
        this.followTime = followTime;
    }

    // Getter and Setter

    public Integer getFollowerId() {
        return followerId;
    }

    public void setFollowerId(Integer followerId) {
        this.followerId = followerId;
    }

    public Integer getFollowedId() {
        return followedId;
    }

    public void setFollowedId(Integer followedId) {
        this.followedId = followedId;
    }

    public LocalDateTime getFollowTime() {
        return followTime;
    }

    public void setFollowTime(LocalDateTime followTime) {
        this.followTime = followTime;
    }

    // toString 方法
    @Override
    public String toString() {
        return "FollowRelation{" +
                "followerId=" + followerId +
                ", followedId=" + followedId +
                ", followTime=" + followTime +
                '}';
    }
}
